<template>
  <!--  普通咨询  -->
  <div @click="routerJump(item)">
    <div class="f-r a-c title-box">
      <div class="button1">{{ item.tableName }}</div>
    </div>
    <div class="status status1" :style="{ backgroundColor: item.statusColor }">{{ item.statusName }}</div>
    <div class="label">
      问题描述：{{ item.content }}
    </div>
    <div class="label">
      提交时间：{{ item.createTime }}
    </div>
  </div>
</template>

<script>
export default {
  name: 'HelpDetail1',
  props: {
    item: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {}
  },
  methods: {
    routerJump(item) {
      this.$router.push({
        path: '/help-detail-elder',
        query: {
          userId: item.userId,
          id: item.id,
          types: item.types,
          vconsole: true
        }
      })
    }
  }
}
</script>

<style scoped lang="scss">
.title-box {
    margin-bottom: 15px;
}
.label-title {
    line-height: 15px;
    font-size: 16px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #333333;
    margin-right: 10px;
}
.link {
    height: 12px;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #2F86FD;
}
.label {
    height: 12px;
    font-size: 12px;
    color: #333333;
    margin-bottom: 13px;
    &:last-of-type {
        margin-bottom: 0;
    }
}

.button1 {
    color: #2B80FF;
    width: 59px;
    height: 24px;
    background: #D8E8FF;
    border: 1px solid #2F86FD;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
}
.status {
    width: 50px;
    height: 21px;
    line-height: 21px;
    font-size: 12px;
    color: #fff;
    border-radius: 0px 10px 0px 0px;
    position: absolute;
    right: -2px;
    top: 0;
    text-align:center;
}
.status1 {
    background: #4B93FE;
}
.status2 {
    background: #20B153;
}

</style>
